
class Event {
    String name
    String description
    Date startDate
    Date endDate
    String location
    Volunteer owner

    static hasMany = [positions: EventPosition]

    static constraints = {
        name(blank:false)
        description(blank:false)
        startDate(blank:false)
        endDate(blank:false)
        owner(blank:false)
    }
}
